package com.daiqile.myinterest.adapter;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.daiqile.myinterest.R;
import com.daiqile.myinterest.model.HelpListDTO;

import java.util.Collection;
import java.util.List;

/**
 * @author Mr.Bean
 * @date Created on 2017/11/27.
 */

public class HeaderAdapter extends BaseQuickAdapter<HelpListDTO,BaseViewHolder>{

    public HeaderAdapter( @Nullable List<HelpListDTO> data) {
        super(R.layout.item_loan_help, data);
    }

    @Override
    public void addData(@NonNull Collection<? extends HelpListDTO> newData) {
        super.addData(newData);
    }

    @Override
    protected void convert(BaseViewHolder helper, HelpListDTO item) {
        helper.setText(R.id.tv_lh_titlle, item.getTitle())
                .setText(R.id.tv_lh_content, item.getContent());
    }


}
